<template>
  <!--  意向申报-->
  <div class="yxsb">
    <el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="60px">
      <el-row style="margin-top: 25px">
        <el-col :span="6">
          <el-form-item label="申报人：" label-width="90px">
            <el-input v-model="ruleForm.shenbaoren" placeholder="请输入" suffix-icon="el-icon-user"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item label="申报日期：" label-width="90px">
            <el-date-picker
              v-model="ruleForm.riqi"
              type="date"
              placeholder="选择日期"
              style="width: 100%">
            </el-date-picker>
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item label="申报部门：" label-width="90px">
            <el-input v-model="ruleForm.bumen" placeholder="请输入" suffix-icon="el-icon-c-scale-to-original"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item label="N：">
            <el-input v-model="ruleForm.N" placeholder="请输入"></el-input>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row>
        <el-form-item label="申报单位：" label-width="90px">
          <el-input v-model="ruleForm.danwei" placeholder="请输入" suffix-icon="el-icon-office-building"></el-input>
        </el-form-item>
      </el-row>
      <div class="form-small-title">
        <el-divider direction="vertical" class="form-divider"></el-divider>
        <span class="form-small-font">基本信息</span>
      </div>
      <el-row style="margin-top: 25px">
        <el-col :span="10">
          <el-form-item label="项目名称：" label-width="100px">
            <el-input v-model="ruleForm.xmmc" placeholder="请输入"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="项目编号：" label-width="90px">
            <el-input v-model="ruleForm.xmbh" placeholder="请输入"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item label="资金来源：" label-width="90px">
            <el-select v-model="ruleForm.zjly" placeholder="请选择" style="width: 100%">
              <el-option v-for="item in capitalSourceOptions" :key="item.value" :label="item.label"
                         :value="item.value"></el-option>
            </el-select>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="6">
          <el-form-item label="项目类型：" label-width="100px">
            <el-select v-model="ruleForm.xmlx" placeholder="请选择" style="width: 100%">
              <el-option v-for="item in projectTypeOptions" :key="item.value" :label="item.label"
                         :value="item.value"></el-option>
            </el-select>
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item label="负责人：" label-width="90px">
            <el-input v-model="ruleForm.fzr" placeholder="请输入" suffix-icon="el-icon-user"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item label="项目部门：" label-width="90px">
            <el-input v-model="ruleForm.xmbm" placeholder="请输入" suffix-icon="el-icon-c-scale-to-original"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item label="预计收入：" label-width="90px">
            <el-input v-model="ruleForm.yjsr" placeholder="请输入">
              <template slot="append">元</template>
            </el-input>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row>
        <el-form-item label="事由及说明：" label-width="100px">
          <el-input v-model="ruleForm.shiyou" placeholder="请输入"></el-input>
        </el-form-item>
      </el-row>
      <el-row>
        <el-form-item label="相关附件：" label-width="100px">
          <el-input v-model="ruleForm.fujian" placeholder="请输入" suffix-icon="el-icon-paperclip"></el-input>
        </el-form-item>
      </el-row>
      <div class="form-small-title">
        <el-divider direction="vertical" class="form-divider"></el-divider>
        <span class="form-small-font">审批意见</span>
      </div>
      <el-row style="margin-top: 25px">
        <el-input
          type="textarea"
          :rows="2"
          placeholder="请输入"
          v-model="ruleForm.approval">
        </el-input>
      </el-row>
    </el-form>
  </div>
</template>

<script>
export default {
  name: "yxsb",
  data() {
    return {
      ruleForm: {},
      rules: {},
      capitalSourceOptions: [],
      projectTypeOptions: [],
    }
  }
}
</script>

<style scoped lang="scss">
.yxsb ::v-deep {
  .el-input__inner {
    border: 0 !important;
    border-bottom: 1px solid #DCDFE6 !important;
    border-radius: 0 !important;
    padding-right: 20px !important;
  }
}

.form-small-title {
  border-bottom: solid 2px #C0C4CC;
  padding-bottom: 10px;
}

.form-divider {
  width: 5px;
  height: 26px;
  background: rgb(66, 185, 131);
}

.form-small-font {
  font-size: 19px;
  font-weight: 600;
  color: #303133;
}
</style>
